package io.ukoko.layuibook.dto;

public class Page {

    //当前页
    private  Integer pageNo;
    //页容量
    private  Integer pageSize;
    //总页数
    private  Integer pageCount;
    //总记录数
    private  Long total;
    //是否有下一页
    private Boolean hasNext;
    //是否有上一页
    private Boolean hasPrevious;
    //当前页数据
    protected Object page;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Boolean getHasNext() {
        return hasNext;
    }

    public void setHasNext(Boolean hasNext) {
        this.hasNext = hasNext;
    }

    public Boolean getHasPrevious() {
        return hasPrevious;
    }

    public void setHasPrevious(Boolean hasPrevious) {
        this.hasPrevious = hasPrevious;
    }

    public Object getPage() {
        return page;
    }

    public void setPage(Object page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "Page{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", pageCount=" + pageCount +
                ", total=" + total +
                ", hasNext=" + hasNext +
                ", hasPrevious=" + hasPrevious +
                ", page=" + page +
                '}';
    }

    public Page() {
    }
}
